<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
	<div class="grid-btn">
			<h6 style="display:inline">截至月份：{{month}}</h6><div style="display:inline"><span style="color:red">红色为低于维持标准</span><span style="color:#16da16">绿色为高于转正标准</span><span>黑色为正常标准</span></div>
	</div>
		<div class="grid-btn">
			<!-- #if($shiro.hasPermission("datadirectcheck:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("datadirectcheck:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("datadirectcheck:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end -->
			<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="value" @keyup.enter="query" placeholder="工号/岗位编号/姓名">
			</div>
			
		</div>
		<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input id="calTime" type="text" class="form-control" v-model="calTime" @keyup.enter="query" placeholder="计算年月">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
		</div>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.employeeid" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">工作编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.workno" placeholder="工作编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">岗位编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.jobno" placeholder="岗位编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.name" placeholder="姓名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.jobtime" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">个人平均业绩</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.averageachi" placeholder="个人平均业绩"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">直接推荐</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.directrec" placeholder="直接推荐"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">正式置业顾问推荐</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.normalrec" placeholder="正式置业顾问推荐"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">直辖组总人数（总推荐人数）</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.totalmember" placeholder="直辖组总人数（总推荐人数）"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">组平均业绩</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.groupaverage" placeholder="组平均业绩"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">直接育成主管</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.directbredzg" placeholder="直接育成主管"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">总育成主管</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.totalbredzg" placeholder="总育成主管"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">计算时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.caltime" placeholder="计算时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.createtime" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataDirectcheck.createby" placeholder=""/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/zjdc/datadirectcheck.js?_${date.systemTime}"></script>
<script src="${rc.contextPath}/js/laydate/laydate.js"></script>
<script type="text/javascript">
laydate.render({
	  elem: '#calTime', //指定元素
	  type:'month',
	  max:'currentmonth'
	});
</script>
</body>
</html>